import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { Page1 } from '../pages/page1/page1';
import { Page2 } from '../pages/page2/page2';
import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { registerPage } from '../pages/register/register';
import { MyinformationPage } from '../pages/Myinformation/Myinformation';
import { BrowserModule } from '@angular/platform-browser';
import { loginPage } from '../pages/login/login';
import { changepasswordPage } from '../pages/changepassword/changepassword';
import { changephonePage } from '../pages/changephone/changephone';
import { Storage } from '@ionic/storage';
//import { file } from 'cordova-plugin-file';
@NgModule({
    declarations: [
        MyApp,
        Page1,
        Page2,
        AboutPage,
        ContactPage,
        HomePage,
        registerPage,
        loginPage,
        MyinformationPage,
        changepasswordPage,
        changephonePage
    ],
    imports: [
        IonicModule.forRoot(MyApp),
        BrowserModule,
        IonicModule.forRoot(MyApp)
        // Include it under 'imports' in your application module
        // after BrowserModule.
        
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
        Page1,
        Page2,
        AboutPage,
        ContactPage,
        HomePage,
        registerPage,
        loginPage,
        MyinformationPage,
        changepasswordPage,
        changephonePage
    ],
    providers: [{ provide: ErrorHandler, useClass: IonicErrorHandler },
        Storage]
})
export class AppModule { }
